package com.byb.server.service.dto;


import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import java.util.Objects;

/**
 * A DTO for the WcQuestion entity.
 */
public class WcQuestionDTO implements Serializable {

    private Long id;

    private String qInfo;

    private String aInfo;

    private Long wcProductId;

    private String wcProductName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getqInfo() {
        return qInfo;
    }

    public void setqInfo(String qInfo) {
        this.qInfo = qInfo;
    }

    public String getaInfo() {
        return aInfo;
    }

    public void setaInfo(String aInfo) {
        this.aInfo = aInfo;
    }

    public Long getWcProductId() {
        return wcProductId;
    }

    public void setWcProductId(Long wcProductId) {
        this.wcProductId = wcProductId;
    }

    public String getWcProductName() {
        return wcProductName;
    }

    public void setWcProductName(String wcProductName) {
        this.wcProductName = wcProductName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        WcQuestionDTO wcQuestionDTO = (WcQuestionDTO) o;
        if(wcQuestionDTO.getId() == null || getId() == null) {
            return false;
        }
        return Objects.equals(getId(), wcQuestionDTO.getId());
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(getId());
    }

    @Override
    public String toString() {
        return "WcQuestionDTO{" +
            "id=" + getId() +
            ", qInfo='" + getqInfo() + "'" +
            ", aInfo='" + getaInfo() + "'" +
            "}";
    }
}
